@import '../../styles/variables';

.video-tools-page {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: @spacing-xl;

  .page-header {
    display: flex;
    flex-direction: column;
    gap: @spacing-md;
    margin-bottom: @spacing-2xl;

    @media (min-width: @screen-md) {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }

    h1 {
      font-size: @font-size-3xl;
      font-weight: 700;
      color: @gray-900;
      margin: 0;
      background: linear-gradient(135deg, @gray-900, @gray-700);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    p {
      font-size: @font-size-lg;
      color: @gray-600;
      margin: @spacing-xs 0 0 0;
    }

    .header-actions {
      display: flex;
      gap: @spacing-md;
      flex-shrink: 0;
    }
  }

  .upload-section {
    background: @white;
    border-radius: 16px;
    padding: @spacing-2xl;
    margin-bottom: @spacing-2xl;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.5);
    text-align: center;

    h2 {
      font-size: @font-size-xl;
      font-weight: 600;
      color: @gray-900;
      margin-bottom: @spacing-sm;
    }

    p {
      font-size: @font-size-base;
      color: @gray-600;
      margin-bottom: @spacing-lg;
    }
  }

  .section-title {
    display: flex;
    align-items: center;
    gap: @spacing-md;
    margin-bottom: @spacing-xl;

    h2 {
      font-size: @font-size-xl;
      font-weight: 600;
      color: @gray-900;
      margin: 0;
    }

    .popular-badge {
      background: @primary-color-light;
      color: @primary-color-dark;
      font-size: @font-size-sm;
      font-weight: 500;
      padding: @spacing-xs @spacing-sm;
      border-radius: 20px;
    }
  }

  .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: @spacing-lg;
    margin-bottom: @spacing-2xl;
  }

  .activity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: @spacing-lg;

    @media (min-width: @screen-lg) {
      grid-template-columns: 1fr 1fr;
    }

    .activity-card {
      background: @white;
      border-radius: 16px;
      padding: @spacing-xl;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      border: 1px solid rgba(229, 231, 235, 0.5);

      h2 {
        font-size: @font-size-lg;
        font-weight: 600;
        color: @gray-900;
        margin-bottom: @spacing-lg;
      }

      .empty-state {
        text-align: center;
        padding: @spacing-2xl;
        color: @gray-500;

        svg {
          width: 64px;
          height: 64px;
          margin-bottom: @spacing-md;
          opacity: 0.5;
        }

        p {
          margin: 0;
          font-size: @font-size-lg;
          font-weight: 500;
        }

        .empty-subtitle {
          font-size: @font-size-sm;
          margin-top: @spacing-xs;
          opacity: 0.7;
        }
      }
    }
  }

  .task-item {
    display: flex;
    align-items: center;
    gap: @spacing-md;
    padding: @spacing-md;
    background: @gray-50;
    border-radius: 12px;
    margin-bottom: @spacing-md;
    transition: all 0.2s;

    &:hover {
      background: @gray-100;
      transform: translateX(4px);
    }

    .task-status {
      width: 8px;
      height: 8px;
      background: @primary-color;
      border-radius: 50%;
      flex-shrink: 0;
      animation: pulse 1.5s infinite;
    }

    .task-details {
      flex: 1;
      min-width: 0;

      .task-name {
        font-size: @font-size-sm;
        font-weight: 500;
        color: @gray-900;
        margin: 0;
        .truncate();
      }

      .task-meta {
        font-size: @font-size-xs;
        color: @gray-500;
        margin-top: @spacing-xs;
      }
    }

    .task-progress {
      font-size: @font-size-xs;
      font-weight: 500;
      color: @primary-color;
    }
  }

  .file-item {
    display: flex;
    align-items: center;
    gap: @spacing-md;
    padding: @spacing-sm;
    border-radius: 8px;
    transition: all 0.2s;

    &:hover {
      background: @gray-50;
    }

    .file-icon {
      width: 40px;
      height: 40px;
      background: @gray-100;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;

      svg {
        width: 20px;
        height: 20px;
        color: @gray-600;
      }
    }

    .file-details {
      flex: 1;
      min-width: 0;

      .file-name {
        font-size: @font-size-sm;
        font-weight: 500;
        color: @gray-900;
        margin: 0;
        .truncate();
      }

      .file-meta {
        font-size: @font-size-xs;
        color: @gray-500;
        margin-top: @spacing-xs;
      }
    }
  }

  @keyframes pulse {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
    100% {
      opacity: 1;
    }
  }
}